package com.hd123.rumba.gwt.widget.client.grid;

public abstract class CellRendererFactory {
  String styleName = "DxGrid-Cell";
  String selectedStyleName = "DxGrid-Cell-Selected";
  String readOnlyStyleName = "DxGrid-Cell-ReadOnly";
  String readOnlySelectedStyleName = "DxGrid-Cell-ReadOnly-Selected";

  public abstract CellRenderer render(DxGrid grid, int row, int col, String text, String width,
      boolean readOnly, boolean selected);

  public String getStyleName() {
    return styleName;
  }

  public void setStyleName(String styleName) {
    this.styleName = styleName;
  }

  public String getSelectedStyleName() {
    return selectedStyleName;
  }

  public void setSelectedStyleName(String selectedStyleName) {
    this.selectedStyleName = selectedStyleName;
  }

  public String getReadOnlyStyleName() {
    return readOnlyStyleName;
  }

  public void setReadOnlyStyleName(String readOnlyStyleName) {
    this.readOnlyStyleName = readOnlyStyleName;
  }

  public String getReadOnlySelectedStyleName() {
    return readOnlySelectedStyleName;
  }

  public void setReadOnlySelectedStyleName(String readOnlySelectedStyleName) {
    this.readOnlySelectedStyleName = readOnlySelectedStyleName;
  }

}
